﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCompensationMsg extends IMessageBase
    {
        public var offlineExp:int;
        public var offlineTime:int;
        public var copysCompensation:Array;
        public const _type:int = 15236;
        public static var _regist:SCompensationMsg = new SCompensationMsg(true);

        public function SCompensationMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SCompensationMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.offlineExp);
            param1.writeInt(this.offlineTime);
            SeqCopyCompensationHelper.write(param1, this.copysCompensation);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.offlineExp = param1.readInt();
            this.offlineTime = param1.readInt();
            this.copysCompensation = SeqCopyCompensationHelper.read(param1);
            return;
        }// end function

    }
}
